package com.ruoyi.vo.order;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderPageVo implements Serializable {

    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("订单编号")
    private Long num;

    @ApiModelProperty("订单金额")
    private BigDecimal price;

    @ApiModelProperty("订单状态 0-未录入 1-进行中 2-未支付 3已支付 4-订单异常")
    private String status;

    @ApiModelProperty("订单支付类型 0-微信 1-支付宝 2-现金")
    private String payType;

    @ApiModelProperty("订单表 车辆外键")
    private Long fkCarId;

    @ApiModelProperty("订单表 车位外键")
    private Long fkParkingId;

    @ApiModelProperty("订单表 用户外键")
    private Long fkUserId;

    @ApiModelProperty("车辆驶入时间")
    private Date intoTime;

    @ApiModelProperty("车辆驶出时间")
    private Date leaveTime;

    @ApiModelProperty("订单创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("订单修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("订单提交时间")
    private Date submitTime;

    @ApiModelProperty("车牌号码")
    private String carNum;

    @ApiModelProperty("路段名称")
    private String sectionName;

    @ApiModelProperty("名字")
    private String username;

    @ApiModelProperty("车位号")
    private String parkNum;
}
